K
Khách

Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.

uses crt;

var diem:real;

begin

clrscr;

repeat

write('Nhap diem trung binh:'); readln(diem);

until (0<=diem) and (diem<=10);

if diem<5 then writeln('Xep loai yeu')

else if (5<=diem) and (diem<6.5) then writeln('Xep loai trung binh')

else if (6.5<=diem) and (diem<8.0) then writeln('Xep loai kha')

else writeln('Xep loai gioi');

readln;

end.

10 tháng 5 2023

Var a:array:[1..50] of real;

i,max:integer;

Begin

For i:=1 to 50 do

Begin

Write('Nhap so thu ',i,' = ');readln(a[i]);

End;

Write('Cac diem vua nhap la: ');

For i:=1 to 50 do 

Write(a[i]:10:2);

Writeln;

max:=a[1];

For i:=2 to 50 do

if a[i]>max then max:=a[i];

Write('Diem trung binh lon nhat la ',max:10:2);

Readln

End.

10 tháng 5 2023

Var a:array:[1..50] of real;

i:integer;

max:real;

Begin

For i:=1 to 50 do

Begin

Write('Nhap diem thu ',i,' = ');readln(a[i]);

End;

Write('Cac diem vua nhap la: ');

For i:=1 to 50 do 

Write(a[i]:10:2);

writeln;

max:=a[1];

For i:=2 to 50 do

if a[i] > max then max:=a[i];

write('Diem lon nhat la ',max:10:2);

Readln

End.

27 tháng 12 2019

uses crt;
var t,v,dtb:real;
begin
clrscr;
write('nhap diem toan:'); readln(t);
write('nhap diem van:'); readln(v);
dtb:=(t+v)/2;
writeln('diem trung binh la: ',dtb:4:2);
if dtb<5 then writeln('xep loai yeu')
else if (dtb>=5) and (dtb<6.5) then writeln('xep loai trung binh')
else if (dtb>=6.5) and (dtb<8) then writeln('xep loai kha')
else writeln('xep loai gioi');
readln;
end.

28 tháng 12 2019

Program bt;

Var t,v,dtb:real;

Begin

Writeln('nhap t:=');

Readln(t);

Writeln('nhap v:=');

Readln(v);

dtb:=(t+v)/2;

Writeln('diem trung binh là:=',dtb);

if dtb<5.0 then writeln('xep loai yeu');

if 5.0<=dtb<=6.5 then writeln('xep loai trung binh');

if 6.5<=dtb<=8.0 then writeln('xep loai kha');

if dtb>=8.0 then writeln('xep loai gioi');

Readln;

End.

5 tháng 5 2023

n = int(input("Nhập số lượng học sinh trong lớp: "))

dtb = [ ]

for i in range(n):

      diem = float(input(f"Nhập điểm trung bình của học sinh thứ {i+1}: "))

      dtb.append(diem)

count = 0

for diem in dtb:

      if diem < 5:

            count += 1

print(f"Số lượng học sinh xếp loại chưa đạt là: {count}")

#include <bits/stdc++.h>

using namespace std;

double a[10],b,c,tb;

int n,i,dem;

int main()

{

cout<<"Nhap so cot thuong xuyen:"; cin>>n;

tb=0;

for (i=1; i<=n; i++)

{

cin>>a[i];

tb=tb+a[i];

}

cin>>b>>c;

tb=tb+b+c;

cout<<fixed<<setprecision(2)<<tb/(n+2)<<endl;

if (tb>=8) cout<<"Gioi";

else if ((tb>=6.5) and (tb<8)) cout<<"Kha";

else if ((tb>=5) and (tb<6.5)) cout<<"Trung binh";

else cout<<"Yeu";

return 0;

}

#include <bits/stdc++.h>

using namespace std;

double a[10],b,c,tb;

int i,n;

int main()

{

cout<<"Nhap so cot thuong xuyen:"; cin>>n;

for (i=1; i<=n; i++) cin>>a[i];

cout<<"Nhap diem giua ki:"; cin>>b;

cout<<"Nhap diem cuoi ki:"; cin>>c;

tb=0;

for (i=1; i<=n; i++) tb=tb+a[i];

tb=tb+b+c;

tb=tb/((n+2)*1.0);

cout<<fixed<<setprecision(2)<<tb<<endl;

if (tb>=8) cout<<"Gioi";

else if ((tb>=6.5) and (tb<8)) cout<<"Kha";

else if ((tb>=5) and (tb<6.5)) cout<<"Trung binh";

else cout<<"Yeu";

return 0;

}

#include <bits/stdc++.h>

using namespace std;

double a,b,tb;

int main()

{

cin>>a>>b;

tb=(a+b*2)/3;

cout<<fixed<<setprecision(2)<<tb<<endl;

if (tb>=8.0) cout<<"Gioi";

else if ((tb>=6.5) and (tb<8)) cout<<"Kha";

else if ((tb>=5.0) and (tb<6.5)) cout<<"Trung binh";

else cout<<"Yeu";

return 0;

}

27 tháng 12 2021

#include <bits/stdc++.h>

using namespace std;

double a,b,kq;

int main()

{

cin>>a>>b;

kq=(a+b*2)/3;

cout<<fixed<<setprecision(2)<<kq;

return 0;

}

3 tháng 1 2022

bạn ơi có sai gì ko vậy